<?php

require_once dirname(__FILE__).'/../lib/malla_curricularGeneratorConfiguration.class.php';
require_once dirname(__FILE__).'/../lib/malla_curricularGeneratorHelper.class.php';

/**
 * malla_curricular actions.
 *
 * @package    sistema_estadisticas
 * @subpackage malla_curricular
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class malla_curricularActions extends autoMalla_curricularActions
{

	public function executeAgregaModulo(sfWebRequest $request)
	{
		$this->forward404Unless($request->isXmlHttpRequest(), 'Acceso incorrecto');
		$form = new MallaCurricularForm();
		$fields = $form->addModuloForm($request->getParameter('index'));
		return $this->renderPartial('modulos_fields', array('moduloFields' => $fields));
	}

}
